const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index () {
    console.log('this.app.config.appMiddleware', this.app.config.appMiddleware);
    // console.log('this.app.middleware', this.app.middleware.gzip);
    this.ctx.body = 'Hello world. ' + new Date();
  }
  async nav (params) {
    const {ctx} = this
    console.log('=====navnavnavnav====', ctx.params)
    this.ctx.body = "HomeController----navbar. params" + JSON.stringify(ctx.params);
  }
}

module.exports = HomeController;